<!--

//
//   Copyright (C) 2015 Menlo Park Innovation LLC
//
//   menloparkinnovation.com
//   menloparkinnovation@gmail.com
//
//   Licensed under the Apache License, Version 2.0 (the "License");
//   you may not use this file except in compliance with the License.
//   You may obtain a copy of the License at
//
//       http://www.apache.org/licenses/LICENSE-2.0
//
//   Unless required by applicable law or agreed to in writing, software
//   distributed under the License is distributed on an "AS IS" BASIS,
//   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//   See the License for the specific language governing permissions and
//   limitations under the License.
//

//
//   lighthouse.html
//
//   Openpux AJAX/REST Sensor Data Query/Update Application
//
//   Openpux Internet Of Things (IOT) Framework.
//
//   Copyright (C) 2014 Menlo Park Innovation LLC
//
//   menloparkinnovation.com
//   menloparkinnovation@gmail.com
//
//   Snapshot License
//
//   This license is for a specific snapshot of a base work of
//   Menlo Park Innovation LLC on a non-exclusive basis with no warranty
//   or obligation for future updates. This work, any portion, or derivative
//   of it may be made available under other license terms by
//   Menlo Park Innovation LLC without notice or obligation to this license.
//
//   There is no warranty, statement of fitness, statement of
//   fitness for any purpose, and no statements as to infringements
//   on any patents.
//
//   Menlo Park Innovation has no obligation to offer support, updates,
//   future revisions and improvements, source code, source code downloads,
//   media, etc.
//
//   This specific snapshot is made available under the terms of
//   the Apache License Version 2.0 of January 2004
//   http://www.apache.org/licenses/
//
-->

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
http://www.w3.org/TR/html4/strict.dtd">
<html>
  <head>
    <title>LightHouse WeatherStation Openpux Application</title>
  <style>
      table, th, td {
          border: 1px solid black;
      }
  </style>
  </head>
  <body bgcolor=white>
  </body>

<script type="text/javascript">

//
// Set this to false in order to display extra information from
// the server not present in the configuration.
//

// Allow display of attributes not in configured set
var SensorReadingAttributesStrict = false;
var SensorSettingsAttributesStrict = false;

// Only display what is configured in this file
//var SensorReadingAttributesStrict = true;
//var SensorSettingsAttributesStrict = true;

//
// Specialization Block
//
// These values set what is displayed for the user.
//
// Setting a value to null will result in it not being displayed if
// returned from the server even if strict == false;
//
SensorReadingAttributes = {

    // These are not displayed as they are on the top of the form
    AccountID:      null,
    SensorID:       null,

    TimeStamp:      "TimeStamp",

    SleepTime:   "SleepTime",
    SensorReading0: null,
    SensorReading1: null,
    SensorReading2: null,
    SensorReading3: null,
    SensorReading4: null,
    SensorReading5: null,
    SensorReading6: null,
    SensorReading7: null,
    SensorReading8: null,
    SensorReading9: null,

    TargetMask0: null,
    TargetMask1: null,
    TargetMask2: null,
    TargetMask3: null,
    TargetMask4: null,
    TargetMask5: null,
    TargetMask6: null,
    TargetMask7: null,
    TargetMask8: null,
    TargetMask9: null
}

SensorSettingsAttributes = {

    // These are not displayed as they are on the top of the form
    AccountID:      null,
    SensorID:       null,

    SleepTime:   null,
    Command:     null,
    TargetMask0: null,
    TargetMask1: null,
    TargetMask2: null,
    TargetMask3: null,
    TargetMask4: null,
    TargetMask5: null,
    TargetMask6: null,
    TargetMask7: null,
    TargetMask8: null,
    TargetMask9: null
}

</script>

<!--- load standard libraries -->
<script src="genericforms.js"></script>
<script src="openpuxforms.js"></script>
<script src="openpuxclient.js"></script>

<script type="text/javascript">
window.onload = function() {
    // This is implemented in openpuxforms.js
    showPage();
}
</script>
</html>
